import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import demoClipboard from "../views/demoClipboard.vue";
import demoScrollTo from "../views/demoScrollTo.vue";
import demoLazyload from "../views/demoLazyload.vue";
import myMounterDataTest from "../views/myMounterDataTest.vue";
// import activeChao from "../views/activeChao.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/demoClipboard",
    component: demoClipboard
  },
  {
    path: "/demoScrollTo",
    component: demoScrollTo
  },
  {
    path: "/demoLazyload",
    component: demoLazyload
  },
  {
    path: "/myMounterDataTest",
    component: myMounterDataTest
  },
  {
  path: '/selectColor',
  name: 'selectColor',
  component: () => import(/* webpackChunkName: "about" */ '../views/selectColor.vue')
  // route level code-splitting
  // this generates a separate chunk (about.[hash].js) for this route
  // which is lazy-loaded when the route is visited.
  }
];

const router = new VueRouter({
  routes
});

export default router;
